package com.example.tass.domain;

import cn.tass.exceptions.TAException;

public class MyValidateCertRequest extends MyBaseRequest{
    private String cert;
    private int verifyLevel;

    public MyValidateCertRequest() {
    }

    public String getCert() {
        return this.cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public int getVerifyLevel() {
        return this.verifyLevel;
    }

    public void setVerifyLevel(int verifyLevel) {
        this.verifyLevel = verifyLevel;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.cert, "cert");
        if (this.verifyLevel <= 0) {
            throw new TAException("The verifyLevel parameter must be greater than 0.");
        }
    }
}
